#!/bin/bash - 
#===============================================================================
#
#          FILE:  build.sh
# 
#         USAGE:  ./build.sh 
# 
#   DESCRIPTION:  build
# 
#       OPTIONS:  ---
#  REQUIREMENTS:  ---
#          BUGS:  ---
#         NOTES:  ---
#        AUTHOR:  Junshan Wang (viiv), viiv@163.com
#       VERSION:  1.0
#       CREATED:  2011年06月04日 14时51分30秒 CST
#      REVISION:  ---
#===============================================================================

set -o nounset                              # Treat unset variables as an error


do_main ()
{
	rm -rf build
	mkdir --parents build 
	cd build 
	cmake .. && make
}    # ----------  end of function do_main  ----------

do_main
